import java.awt.image.*;
import java.awt.*;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.event.*;



public class GameEngine 
{
  
  private int [][] deplacement;
  private int[] point;
  private int indice;

  public GameEngine(int [][]dep, int[] p)
  {
    deplacement = dep;
    point = p;
    indice = 0;
  }

  
  public void update(long delta_time){
    point[0] = deplacement[indice][0];
    point[1] = deplacement[indice][1];
    
    indice++;
    indice %= deplacement.length;
    

  }
}